package Dao;

import entity.Filminfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface FilminfoDao {
    public List<Filminfo> getFilminfos();
    public List<Filminfo> getFilminfosByname(String name);
    public List<Filminfo> getFilminfosByCondition(@Param("name") String name,@Param("money") Integer money);
    public List<Filminfo> getFilminfosByCondition2(Map<String,Object> map);
    public List<Filminfo> getFilminfosByCondition3(Filminfo filminfo);
    public List<Filminfo> getFilminfosByCondition4(@Param("info") Filminfo filminfo);
    public List<Filminfo> getFilminfosByCondition5(@Param("choice") String choice);
    public List<Filminfo> getFilminfosByCondition6(Integer[] typeid);
    public List<Filminfo> getFilminfosByCondition7(List<Integer> typeid);
    public List<Filminfo> getFilminfosAndType();
    public int getcount();
    public List<Filminfo> getFilmPage(@Param("pageIndex") Integer pageIndex,@Param("pageSize") Integer pageSize);
    public int getcount2(@Param("info") Filminfo filminfo);
    public List<Filminfo> getFilmPage2(@Param("pageIndex") Integer pageIndex,@Param("pageSize") Integer pageSize,@Param("info") Filminfo filminfo);
    public int delDilminfo(@Param("filmid") Integer filmid);
    public int addFilminfo(@Param("info") Filminfo filminfo);
    public int updateFilminfo(@Param("info") Filminfo filminfo);
}
